import { applyDecorators } from "@nestjs/common";
import { Validate, ValidationOptions } from "class-validator";
import { MyValidator } from "./myValidator";

export function MyContains(content:string, options?: ValidationOptions) {
    return applyDecorators(Validate(MyValidator, [content], options))
}